import request from '@/utils/request';

export async function getDictDataByPage(params: any) {
  return request('/api/service/getDictDataByPageAndDictType', {
    method: 'POST',
    data: params,
  });
}

export async function addDictData(params: any) {
  return request('/api/service/addDictData', {
    method: 'POST',
    data: params,
  });
}

export async function updateDictData(params: any) {
  return request('/api/service/updateDictData', {
    method: 'POST',
    data: params,
  });
}

export async function delDictData(params: any) {
  return request('/api/service/delDictData', {
    method: 'POST',
    data: params,
  });
}

export default { getDictDataByPage, addDictData, updateDictData, delDictData };
